import myaxios from "@/utils/myaxios";
export function login(username,password){
    //发送axios请求
    return myaxios({
        url:'/user/login',
        method:'post',
        data:{
            username,
            password
        }
    })
}
export function getUserInfo(token){
    return myaxios({
        url:`/user/info/${token}`,
        method:'get'
    })
}
export function logout(token){
    return myaxios({
        url:`/user/logout/${token}`,
        method:'post'
    })
}
